Closed-loop tACS stimulation based on addiction-induced states